package com.yuliang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuliang.domain.R;
import com.yuliang.domain.dto.ArticleDto;
import com.yuliang.domain.entity.Article;
import com.yuliang.domain.vo.ArticleContentDetailVo;


/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2023-09-18 21:02:27
 */
public interface ArticleService extends IService<Article> {

    //热门文章
    R hotArticleList();
    //文章列表
    R articleList(Integer pageNum, Integer pageSize, Long categoryId);
    //文章详情
    R getArticleDetail(Long id);

    R updateViewCount(Long id);

    R writeArticle(ArticleDto articleDto);

    R getPageList(Integer pageNum, Integer pageSize, String title, String summary);

    R getArticleContentDetail(Long id);

    R updateArticle(ArticleContentDetailVo article);

    R deleteById(Long id);
}

